# coding: utf-8
# Project：PyCharmMiscProject
# File：2.py
# Author：liuchuanzhi
# Date ：2025/3/19 19:44
# IDE：PyCharm
import random
count=0
a=0
b=0
scissorsrockpaper=["剪刀","石头","布"]
while count<5:
    robot=random.choice(scissorsrockpaper)
    superman=input("请出拳：")
    if superman=="剪刀" or superman=="石头" or superman=="布":
        if superman==robot:
            print("平局！哈哈哈")
            count+=1
        elif superman=="剪刀" and robot=="石头":
            print("你输了！哈哈哈")
            count+=1
            a +=1
        elif superman == "石头" and robot == "布":
            print("你输了！哈哈哈")
            count += 1
            a+=1
        elif superman == "布" and robot == "剪刀":
            print("你输了！哈哈哈")
            count += 1
            a+=1
        elif superman == "剪刀" and robot == "布":
            print("哈哈哈，你赢了！")
            count += 1
            b+=1
        elif superman == "石头" and robot == "剪刀":
            print("哈哈哈，你赢了！")
            count += 1
            b+=1
        elif superman == "布" and robot == "石头":
            print("哈哈哈，你赢了！")
            count += 1
            b+=1
    else:
        print("请重新输入")
if a>b:
    print("哈哈哈，总的来说你输了，是我赢了")
elif a==b:
    print("这次平局下次再来")
elif a<b:
    print("哈哈哈，总的来说你赢了，是我输了")
